export interface ResponseData {
  status: number
}

export interface LoginData {
  phone: string
  password: string
  captcha: string
}

export type MenuItem = {
  label: string;
  key?: string;
  icon?: string;
  type?: string;
  children?: MenuItem[];
};

export interface LoginResponseData extends ResponseData {
  data: {
    token: string
    message: string
    userInfo: {
      _id: string
      phone: string
      nick: string
      imgUrl: string
    },
    menu: MenuItem[]
  }
}
